package com.lagou.edu.service;

import com.lagou.edu.pojo.Resume;

import java.util.List;

/**
 * @author Kirito
 * @description:
 * @date 2020/04/11
 */
public interface IResumeService {
    /**
     * 查询所有简历
     *
     * @return List
     */
    List<Resume> findAll() throws Exception;

    Resume findById(Long id) throws Exception;

    /**
     * 新增简历
     *
     * @param resume Resume
     * @return boolean
     * @throws Exception Exception
     */
    boolean save(Resume resume) throws Exception;

    /**
     * 更新简历
     *
     * @param resume Resume
     * @return boolean
     * @throws Exception Exception
     */
    boolean update(Resume resume) throws Exception;

    /**
     * 删除简历
     *
     * @param id Long
     * @return boolean
     * @throws Exception Exception
     */
    boolean deleteById(Long id) throws Exception;
}
